package cn.codeforfun;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * Package cn.codeforfun
 * Project docker-testtest
 * Company  PACTERA
 * Author bin.wang
 * Created on 2017/3/22 15:49
 * version 1.0.0
 */
@SpringCloudApplication
@EnableFeignClients
public class ConsumerApplication {
  @Bean
  @LoadBalanced
  public RestTemplate getRestTemplate() {
    return new RestTemplate();
  }

  public static void main(String[] args) {
    SpringApplication.run(ConsumerApplication.class);
  }
}
